package com.hspedu.interface_;

/**
 * @Author Stringzhua
 * @Date 2024/3/6 12:58
 * description:
 */
public class Interface03 {
    public static void main(String[] args) {
        MysqlDB mysqlDB = new MysqlDB();
        t(mysqlDB);

        OracleDB oracleDB = new OracleDB();
        t(oracleDB);
    }
    public static void t(DBinterface dBinterface){
        dBinterface.connect();
        dBinterface.close();
    }
}
